﻿<%@ Page Title="Join Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Chat.aspx.cs" Inherits="ChatASP._Default" %>

<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    

    <asp:ListView ID="ChannelListView" runat="server" ItemPlaceholderID="ItemPlaceHolder">
            <LayoutTemplate>
                <table>
                    <tr>
                        <th>
                            Channel Name
                        </th>
                        <th>
                            Description
                        </th>
                    </tr>
                    <asp:PlaceHolder ID="ItemPlaceHolder" runat="server" />
                </table>
            </LayoutTemplate>
            <ItemTemplate>
                    <tr>
                        <td>
                            <asp:Literal ID="Literal2" Text='<%# Eval("ChannelName") %>' runat="server"></asp:Literal>
                        </td>
                        <td>
                            <asp:Literal ID="Literal1" Text='<%# Eval("Description") %>' runat="server"></asp:Literal>
                        </td>
                        <td>
                            <asp:LinkButton ID="JoinButton" runat="server" Text="Join" CommandName="Join" OnClick="JoinChannel"/>
                        </td>
                    </tr>
            </ItemTemplate>
        </asp:ListView>
</asp:Content>
